# Solution.pro
TEMPLATE = subdirs  #告诉 Qt 这是一个 Subdirs 工程。

# 定义子工程顺序  列出所有子工程路径。
SUBDIRS += \
    CoreLib \
    UIlib \
    App \
    pluginA \
    pluginB \
    shareA

# 平台特定子项目
# win32: SUBDIRS += platform/windows
# macx: SUBDIRS += platform/macos
# linux: SUBDIRS += platform/linux
# android: SUBDIRS += platform/android

# 指定 App 依赖 UIlib，确保编译顺序
App.depends = UIlib
App.depends = pluginA
App.depends = pluginB
App.depends = shareA
App.depends = CoreLib

CONFIG += ordered

# 统一配置传递给所有子项目
# CONFIG += ordered c++11 warn_on
# CONFIG(release, debug|release) {
#     DEFINES += QT_NO_DEBUG_OUTPUT
# }

# 设置默认构建目标
DEFAULT_GOAL = App


# 项目级配置
app.file = App/App.pro
app.config = myapp

core.file = UIlib/UIlib.pro
core.config = staticlib


core.file = pluginA/pluginA.pro
core.config = plugin

core.file = pluginB/pluginB.pro
core.config = plugin

core.file = shareA/shareA.pro
core.config = share

core.file = CoreLib/CoreLib.pro
core.config = staticlib


